package edu.magix.pres;

import java.io.FileOutputStream;

/**
 *
 * @author Sebas
 */
public class MxFile {
    
    private FileOutputStream fileOut;
    
    public MxFile(String path)
    {
        try
        {
            fileOut = new FileOutputStream(path);
        }
        catch(Exception ex) {}
    }
    
    public void WriteFile(String text1)
    {
        try
        {
            byte[] bytes = text1.getBytes();
            fileOut.write(bytes);
            fileOut.flush();
        }
        catch(Exception ex) {}        
    }
    
    public void CloseFile()
    {
        try
        {
            fileOut.close();
        }
        catch(Exception ex) {} 
    }
}
